package is2_domestik

import org.springframework.dao.DataIntegrityViolationException
import org.springframework.web.multipart.commons.CommonsMultipartFile

class ImagenController {
    def scaffold = Imagen


    def showImage = {
        def imagen = Imagen.get( params.id )
        response.outputStream << imagen.screenshot
        response.outputStream.flush()
    }

    
    def springSecurityService
		
    def currentUser(){
        return User.get(springSecurityService.principal.id)
    }
    
    
    
}
